package cn.iocoder.yudao.module.erp.controller.admin.stock.bom.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - BOM Response VO")
@Data
@ExcelIgnoreUnannotated
public class BomRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "7403")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "bom编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("bom编号")
    private String code;

    @Schema(description = "版本")
    @ExcelProperty("版本")
    private String version;

    @Schema(description = "是否默认 1-是", example = "是")
    @ExcelProperty(value = "是否默认 1-是", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean defaultFlag;

    @Schema(description = "成品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("成品名称")
    private String prodName;

    @Schema(description = "日产量")
    @ExcelProperty("日产量")
    private BigDecimal dayProductivity;

    @Schema(description = "配件", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("配件")
    private String accessoryList;

    @Schema(description = "工序")
    @ExcelProperty("工序")
    private String processList;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remarks;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "成品编号")
    @ExcelProperty("成品编号")
    private String prodNo;

}